package chapter02;

public class Test07_Cat {
    public static void main(String[] args) {
        Cat1 c = new Cat1("小哩","白色","布偶猫");
        c.shout();
    }
    //定义游戏中的英雄类 属性 名字、初始血量、种类
    //方法 levelUp 每升一级血量+100 info方法 将自己信息输出
}
class Cat1{
    private String name;
    private String color;
    private String type;
    public Cat1(String n1,String c1,String t1){
        name = n1;
        color = c1;
        type = t1;
    }
    public void shout(){
        System.out.println(name);
        System.out.println(color);
        System.out.println(type);
        System.out.println("喵喵喵");
    }

}
